import service from '@/api/http'
export const appointment = {

    getAppointment(p) {
        return service.get('/appointment', {
            params: p
        })
    },

    addAppointment(p) {
        return service.put('/appointment/add', p)
    },

    updateAppointment(p) {
        return service.post('/appointment/update', p)
    },

    deleteAppointment(p) {
        return service.delete('/appointment/delete', {
            params: p
        })
    },
    
    // 获取客户信息
    getCustomer() {
        return service.get('/appointment/getCustomerInfo')
    },

    // 获取项目信息
    getProject() {
        return service.get('/appointment/getProject')
    },

    // 获取员工信息
    getEmployee() {
        return service.get('/appointment/getEmployee')
    },

    // 获取预约状态
    getAppointmentStatus() {
        return service.get('/appointment/getAppointmentStatus')
    },

    // 获取查询项客户信息
    getCustomerList(){
        return service.get('/appointment/getCustomerList')
    },

    // 获取查询项项目列表
    getProjectIdList(){
        return service.get('/appointment/getProjectIdList')
    },

    // 获取查询项员工列表
    getEmployeeList(){
        return service.get('/appointment/getEmployeeList')
    },

    // 获取查询项预约状态列表
    getAppointmentStatusList(){
        return service.get('/appointment/getAppointmentStatusList')
    },

    // 根据医生获取预约时间表
    getAppointmentTimeTable(p){
        return service.get('/appointment/getAppointTime', {
            params: p
        })
    }

}